import request from '../../request/request.js'

Page({
  data: {
    date: '',
    courseList:[],
  },
  onLoad: function(option){
    this.getCourseList();
  },
  onDisplay() {
  
  },
  getCourseList(){
    let user = wx.getStorageSync('userInfo')
    var that=this;
    request({
      url:'record/user',
      data:{userId:user.id},
      method:'post'
    }).then(res=>{
      this.setData({
        courseList:res.data.data
      })
    }).catch(err=>{})
  }
});